package com.cloud.pole.shop.service.goods.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.shop.biz.goods.ShopGoodsAttrValueBiz;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsAttrValue;
import com.cloud.pole.shop.service.goods.GoodsAttrValueService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class GoodsAttrValueServiceImpl implements GoodsAttrValueService {
	
	@Autowired
	private ShopGoodsAttrValueBiz shopGoodsAttrValueBiz;
	
	
	@Override
	public void addGoodsAttrValue(ShopGoodsAttrValue shopGoodsAttrValue) {
		shopGoodsAttrValueBiz.insertGoodsAttrValue(shopGoodsAttrValue);

	}


	@Override
	public List<ShopGoodsAttrValue> selectByGoodsId(Integer goodsId) throws Exception {
		
		return shopGoodsAttrValueBiz.selectByGoodsAttrValue(goodsId);
	}


	@Override
	public void deleteGoodsAttrValue(Integer goodsId) throws Exception {
		shopGoodsAttrValueBiz.deleteByGoodsAttrVal(goodsId);
		
	}


	

}
